<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <style>
        /**{*/
            /*margin: 0;*/
            /*padding: 0;*/
        /*}*/
        #main{
            /*display: flex;*/
            min-width: 1200px;
            height: 100%;
        }
        canvas{
            background-color: #f9fcfe;
        }
        #bill-state,#bill-curve,#bill-other{
            margin: 10px;
            border: 1px solid #cedce2;
            height: 349px;
            width: 600px;
            float:left;
            position: relative;
        }
        #Reportform-state,#Reportform-state,#Reportform-state{
            margin: 10px 0 0 20px;
            border: 1px solid #cedce2;
            height: 240px;
            width: 400px;
        }
        .clear{
            clear:both;
        }
ul,li{
    list-style-type: none;
}
        li{
            display: inline-block;
            border: 1px solid #cedce2;
            border-radius: 3px;
            float:left;
            margin-right:10px;
            padding: 0 5px;
            cursor:pointer;
        }
        ul{
            position: relative;
            left:-19px;
        }
        .billS-title {
            display: inline-block;
            margin: 5px 0 0 20px;
        }
    </style>
    <!-- 引入 echarts.js -->
    <script src="../js/echarts3.0.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小（宽高）的Dom -->
<div id="main">
    <div id="bill-curve">
        <span class="billS-title">运单曲线</span>
        <hr>
        <div id="Reportform-curve"></div>
    </div>
    <div id="bill-state">
        <span class="billS-title">运单状态</span>
        <hr>
        <ul>
            <li >本日</li>
            <li>本周</li>
            <li>本月</li>
        </ul>
        <div class="clear"></div>
        <div id="Reportform-state"></div>
    </div>
    <div id="bill-other">
        <span class="billS-title" >其他</span>
        <hr>
        <div id="Reportform-other"></div>
    </div>
</div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('Reportform-state'));

    // 指定图表的配置项和数据
    var option = {
        title : {
            text: '运单状态',
            subtext: '纯属虚构',
            x:'center'
        },
        tooltip : {
            trigger: 'item',
            formatter: "{a} <br/>{b} : {c} ({d}%)"
        },
        legend: {
            orient: 'vertical',
            left: 'left-center',
            data: ['新增','提交','已回单']
        },
        series : [
            {
                name: '运单状态',
                type: 'pie',
                radius : '55%',
                center: ['50%', '60%'],
                data:[
                    {value:156, name:'新增'},
                    {value:123, name:'提交'},
                    {value:234, name:'已回单'},
//                    {value:135, name:'视频广告'},
//                    {value:1548, name:'搜索引擎'}
                ],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>
</html>